﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Zeus.Thunder.Core;

namespace SharpTrainer.Delegates
{
    class AnonymousBinOp : ITestCase
    {
        public void Run()
        {
            BinOp add = delegate(int a, int b) 
                        { 
                            return a + b; 
                        };
            int result = add(2, 3); // calls the anonymous method through the delegate
            Console.WriteLine("Result: {0}", result);
        }
    }
}
